<?php
namespace frontend\controllers;
use backend\component\ResultFormat;
use frontend\component\FrontendBaseController;
use frontend\service\ArticleService;

/**
 * Created by PhpStorm.
 * User: ZT
 * Date: 2020/7/10 0010
 * Time: 9:56
 **/
class PreviewController extends FrontendBaseController{
    public function actionIndex($aid){
        $DetailArticle = ArticleService::getDetailArticle($aid);
        return $this->render("index",$DetailArticle);
    }
}